﻿@{ 
   
    Layout = "~/Views/Shared/_rootLayout.cshtml";
   
}

<script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

@Html.DevExpress().Splitter(settings =>
{
    settings.Name = "ContentSplitter";
    settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
    settings.Height = System.Web.UI.WebControls.Unit.Percentage(100);
    settings.Styles.Pane.Paddings.Padding = System.Web.UI.WebControls.Unit.Pixel(0);
    settings.Styles.Pane.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
    
    settings.Panes.Add(subpane =>
    {
        subpane.Name = "ContentLeft";
        subpane.PaneStyle.CssClass = "leftPane";
        subpane.ShowCollapseBackwardButton = DefaultBoolean.True;
        subpane.Size = System.Web.UI.WebControls.Unit.Pixel(150);
        subpane.PaneStyle.Paddings.Padding = System.Web.UI.WebControls.Unit.Pixel(1);
        subpane.ScrollBars = System.Web.UI.WebControls.ScrollBars.Auto;
        subpane.SetContent("<iframe  id='contentleft' name='contentleft' style='width:100%;height:99%' frameborder='0' src='" + Url.Action("Left", "Index", new { focusNodeName = ViewData["focusNodeName"]}) + "'></iframe>");
        
    });

    settings.Panes.Add(subpaneContent =>
         {
             subpaneContent.Separator.Visible = DefaultBoolean.True;
             subpaneContent.Name = "ContentCenter";
             subpaneContent.PaneStyle.CssClass = "contentPane";
             subpaneContent.Separator.SeparatorStyle.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
             subpaneContent.Separator.SeparatorStyle.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
             subpaneContent.PaneStyle.Paddings.Padding = System.Web.UI.WebControls.Unit.Pixel(0);
             subpaneContent.SetContent("<iframe  id='contentframe' name='contentframe' style='width:100%;height:100%' frameborder='0' src='" + Url.Action("Content", "Index") + "'></iframe>");


         });

    }).GetHtml()


